<template>
  <div>
    <Sun1></Sun1>
    {{ dd }}
    <button @click="ww">这是一个按钮</button>
  </div>
</template>
<script>
import Sun1 from './Sun1.vue'
export default {
  name: '',
  inject: ['dd', 'fd'],
  components: {
    Sun1
  },
  data () {
    return {

    }
  },
  created () {
  },
  computed: {
  },
  methods: {
    ww () {
      this.fd('这是zi传过去的值')
    }
  }
}
</script>
<style lang='less'  scoped>
</style>
